﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using IBatisNet.DataMapper;
using TumbaloSoft.Models;

namespace TumbaloSoft.Helpers
{
    public class HelperTipoDocumento
    {
        static public IList selectAll()
        {
            return Mapper.Instance().QueryForList("TipoDocumentoSelectAll", null);
        }

        static public TipoDocumento selectById(int id)
        {
            IList l = Mapper.Instance().QueryForList("TipoDocumentoSelectById", id);
            TipoDocumento t = (TipoDocumento)l[0];
            return t;
        }
    }
}